package com.example.demo.service;

import com.example.demo.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AccountService {
  @Autowired
  private UserDao userDao;
  
  public void preCheckAccount(String input) {
    System.out.println("account output: " + input);
  }
  
  public void accountThrowException() throws Exception {
    throw new Exception("This is a exception from AccountService.");
  }
}